<template>
    <lightning-card title="联系人列表">
        <!-- display loaded by @wire  -->
        <template if:true={contacts.data}>
            <lightning-datatable
                key-field="Id"
                data={contacts.data}
                columns={columns}
            >
            </lightning-datatable>
        </template>
        <p>{errors}</p>
        <!-- display loaded by Apex Imperatively -->
        <!-- <template if:true={contacts}>
            <lightning-datatable
                key-field="Id"
                data={contacts}
                columns={columns}
            >
           </lightning-datatable>
        </template> -->
    </lightning-card>
</template>